This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Resolved - Problem populating authors fields on docs with no readers fields ~Rebecca Quettumivitchgon 12.Dec.03 09:53 AM a Web browser Applications Development 6.0.1 CF2Windows NT
Thankyou for your postings but I think I have found what the problem was.
The agent that was repopulating the authors field was setting it to IsNames each time a name was added then saving but not setting IsAuthors until all author names had been added to the field. R5 allowed you to set the Authors field type after the field had been populated and the document saved but Notes 6 does not.
The authors fields already existed on the document as type Authors. The agent was using GetFirstItem and AppendToTextList to repopulate the fields but because Notes recognised it as an authors field and I was populating it with text and then setting it to IsNames and saving the document each time, some new security feature in Notes 6 was immediately locking everyone out of the document regardless of their ACL access because the Authors fields were being populated incorrectly. The message returned by the agent was "You are not authorised to perform that operation".
If a readers field existed on the document then the ACL access was unaffected.
Also, if ReplaceItemValue was used instead of GetFirstItem then this worked because the agent was not picking up a field that was already an Authors field it was simply replacing a field value.
The solution was to set IsAuthors prior to each save rather than setting IsAuthors at the end once the field had been populated.